﻿using System.Windows.Shapes;
using Oxage.Common;

namespace Oxage.CNC.Models
{
	public partial class MotorViewModel : ViewModelBase
	{
		#region Constructor
		public MotorViewModel()
		{
		}
		#endregion

		#region Public properties
		public string Name
		{
			get
			{
				return this.name;
			}
			set
			{
				if (this.name != value)
				{
					this.name = value;
					OnPropertyChanged("Name");
				}
			}
		}
		private string name;

		public double DegreesPerStep
		{
			get
			{
				return this.degreesPerStep;
			}
			set
			{
				if (this.degreesPerStep != value)
				{
					this.degreesPerStep = value;
					OnPropertyChanged("DegreesPerStep");
				}
			}
		}
		private double degreesPerStep;

		public StepperDriverType DriverType
		{
			get
			{
				return this.driverType;
			}
			set
			{
				if (this.driverType != value)
				{
					this.driverType = value;
					OnPropertyChanged("DriverType");
				}
			}
		}
		private StepperDriverType driverType;

		public int PPS
		{
			get
			{
				return this.pps;
			}
			set
			{
				if (this.pps != value)
				{
					this.pps = value;
					OnPropertyChanged("PPS");
				}
			}
		}
		private int pps;
		#endregion
	}
}
